package Base;

/**
 * <p>Title StringTest</p>
 *
 * @author YiMing Liu
 * @date 2018/7/3 13:26
 * <p>Description:</p>
 */
public class StringTest {
    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer("abc");
        StringBuilder stringBuilder = new StringBuilder("qwe");
        long currentTimeMillis = System.currentTimeMillis();
        for(int i = 0 ; i<5000 ; i++){
            stringBuilder.append("asd");
        }
        long currentTimeMillis1 = System.currentTimeMillis();
        System.out.println(currentTimeMillis1-currentTimeMillis);
    }
}
